package com.example.administrator.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;

/**
 * Created by 董豪华 on 2017/1/6.
 */
public class Xinzuojiemian extends AppCompatActivity {
    TextView xingzuo;
    String name;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.acitivity_xinzuo);
        Intent intent = getIntent();
        name = intent.getStringExtra("name");
        xingzuo = (TextView) findViewById(R.id.xingzuo);
        xingzuo.setText(name);
    }
    public void fanhuiz(View view){
        finish();
    }
    public void bu_jinri(View view){
        Intent intent = new Intent(Xinzuojiemian.this, DayAcitivity.class);
        intent.putExtra("xingzuo",name);
        startActivity(intent);
    }
    public void bu_mingri(View view){
        Intent intent = new Intent(Xinzuojiemian.this, TomorrowAcitivity.class);
        intent.putExtra("xingzuo",name);
        startActivity(intent);
    }
    public void bu_benzhou(View view){
        Intent intent = new Intent(Xinzuojiemian.this, WeekAcitivity.class);
        intent.putExtra("xingzuo",name);
        startActivity(intent);;
    }
    public void bu_xiazaou(View view){
        Intent intent = new Intent(Xinzuojiemian.this, NextweekAcitivity.class);
        intent.putExtra("xingzuo",name);
        startActivity(intent);
    }
    public void bu_jinyue(View view){
        Intent intent = new Intent(Xinzuojiemian.this, MonthAcitivity.class);
        intent.putExtra("xingzuo",name);
        startActivity(intent);
    }
    public void bu_jinnian(View view){
        Intent intent = new Intent(Xinzuojiemian.this, YearAcitivity.class);
        intent.putExtra("xingzuo",name);
        startActivity(intent);
    }
}
